﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Collections.TreeCollections;
using EventLogAssembly;

namespace FeatureModel.Collections.TreeArgs
{
    public class TreeObjectDeletedEventArgs : TreeEventArgs
    {
        public INonRoot ObjectToDelete { get; protected set; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="objToDelete"></param>
        /// <param name="dependentObjects">
        /// objects depense on the object to delete. If the tree objects deleted, 
        /// the dependant objects cannot be in the tree</param>
        public TreeObjectDeletedEventArgs(Object sender, string info, int eventId
            , INonRoot objToDelete, INonRoot[] dependentObjects)
            : base(sender, info, eventId)
        {
            ObjectToDelete = objToDelete;
        }
    }
}
